<?php
/*
    Pai special Template: 脱毛特惠专场
*/
?>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>脱毛特惠专场_惠州专业脱毛医院_惠州鹏爱医疗美容医院</title>
		<meta name="keywords" content="脱毛特惠专场，脱毛价格,惠州脱毛医院,惠州鹏爱医疗美容医院" />
		<meta name="description" content="惠州3月脱毛特惠专场，脱毛嗨抢价,脱毛医院，惠州脱毛,惠州鹏爱医疗美容医院" />
		<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1,user-scalable=no">
		<link rel="stylesheet" type="text/css" href="/post_template/special/tuomaoth/css/css.css" />
		<link rel="stylesheet" type="text/css" href="/post_template/special/tuomaoth/css/current.css" />
		<script src="/post_template/special/tuomaoth/js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="/post_template/special/tuomaoth/js/flexible.js" type="text/javascript" charset="utf-8"></script>
		<?php wp_head(); ?>
	</head>

	<body>
		<?php get_sidebar("header_zt"); ?>
		<div class="pai_main">
			<section class="tuomao_one">
				<div><img src="/post_template/special/tuomaoth/images/tuomao_01_01.png" alt="" /></div>
				<div class="tuomao_one_btn">
					<a href="#tuomao_five"><img src="/post_template/special/tuomaoth/images/tuomao_02_08.png" alt="" /></a>
				</div>
			</section>
			<section class="tuomao_two">
				<div class="pai_maxwidth">
					<div class="pai_tit"><img src="/post_template/special/tuomaoth/images/tuomao_04_08.png" alt="" /></div>
					<div class="pai_two_whole">
						<div><img src="/post_template/special/tuomaoth/images/tuomao_05_11.png" alt="" /></div>
						<div class="pai_two_centent">
							<label>冰点脱毛</label>
							<span>（腋下/上唇/前臂毛3选1）</span>
							<p>380元/6次</p>
							<a href="#tuomao_five"><img src="/post_template/special/tuomaoth/images/tuomao_06_15.png" /></a>
						</div>
					</div>
				</div>
			</section>
			<section class="tuomao_three">
				<div class="pai_maxwidth">
					<div class="pai_tit"><img src="/post_template/special/tuomaoth/images/tuomao_08_08.png" alt="" /></div>
					<div class="pai_three_img"><img src="/post_template/special/tuomaoth/images/tuomao_09_10.png" alt="" /></div>
				</div>
			</section>
			<section class="tuomao_four">
				<div class="pai_tit"><img src="/post_template/special/tuomaoth/images/tuomao_11_14.png" alt="" /></div>
				<div class="pai_four_number">
					<ul>
						<li class="flex-box-a">
							<div class="pai_number_left">
								<div><img src="/post_template/special/tuomaoth/images/tuomao_12_03.png" alt="" /></div>
								<div class="pai_number_left_centent">脱毛</div>
							</div>
							<div class="pai_number_right">
								<p>照射后毛囊萎缩，设备持续性的<br />冷却系统让毛发在清凉舒适脱落</p>
								<span class="pai_sw"><img src="/post_template/special/tuomaoth/images/tuomao_15_03.png" alt="" /></span>
							</div>
						</li>
						<li class="flex-box-a">
							<div class="pai_number_right pai_number_right_two">
								<p>脱毛快速有效<br />操作过程中对毛孔进行紧致</p>
								<span class="pai_sl"><img src="/post_template/special/tuomaoth/images/tuomao_16_07.png" alt="" /></span>
							</div>
							<div class="pai_number_left">
								<div><img src="/post_template/special/tuomaoth/images/tuomao_13_03.png" alt="" /></div>
								<div class="pai_number_left_centent">紧致</div>
							</div>
						</li>
						<li class="flex-box-a">
							<div class="pai_number_left">
								<div><img src="/post_template/special/tuomaoth/images/tuomao_14_03.png" alt="" /></div>
								<div class="pai_number_left_centent">美肤</div>
							</div>
							<div class="pai_number_right">
								<p>过程中刺激胶原蛋白增生，不易产生<br />色素沉着，皮肤状态光滑年轻</p>
								<span class="pai_sw"><img src="/post_template/special/tuomaoth/images/tuomao_15_03.png" alt="" /></span>
							</div>
						</li>
					</ul>
				</div>
			</section>
			<section class="tuomao_five" id="tuomao_five">
				<div class="pai_tit"><img src="/post_template/special/tuomaoth/images/tuomao_18_03.png" alt="" /></div>
				<div class="forms">
					<form action="" method="post">
						<div class="from-cont">
							<div class="flex-box-b">
								<label>姓名</label>
								<input type="text" autocomplete="off" name="" id="name" value="" />
							</div>
							<div class="flex-box-b">
								<label>电话</label>
								<input type="text" autocomplete="off" name="" id="phone" value="" />
							</div>
							<div class="flex-box-b pai_ss">
								<label>脱毛部位：</label>
								<select name="xiala" id="selected">
									<option selected="selected" value="">--请选择-- </option>
									<option value="脱毛-前臂">脱毛-前臂</option>
									<option value="脱毛-腋下">脱毛-腋下</option>
									<option value="脱毛-唇毛">脱毛-唇毛</option>
									<option value="脱毛-其它">脱毛-其它</option>
								</select>
							</div>
							<div class="flex-box-b pai_ss">
								<label>顾客类型：</label>
								<select name="xiala_two" id="selected_two">
									<option selected="selected" value="">--请选择-- </option>
									<option value="新">我是新客</option>
									<option value="老">我是老客</option>
								</select>
							</div>
						</div>
					</form>
				</div>
				<div class="pai_five_btn">
					<a href="javascript:void(0);" id="sub">
						<img src="/post_template/special/tuomaoth/images/tuomao_20_03.png" alt="" />
					</a>
				</div>
			</section>
		</div>
	</body>
	<script type="text/javascript">
		$(function() {
			$("#sub").on("click", function() {

				if($("#name").val() == "") {
					alert("姓名不能为空");
					return false;
				}
				if($("#phone").val() == "") {
					alert("电话号码不能为空");
					return false;
				}
				if($("#selected").val() == "") {
					alert("请选择脱毛部位");
					return false;
				}
				if($("#selected_two").val() == "") {
					alert("请选择顾客类型");
					return false;
				}else {
					var name = $("#name").val();
					var tel = $("#phone").val();
					var selected = $("#selected").val();
					var selected = $("#selected_two").val();
					var pitch = $("#selected option:checked").text();
					var sign = $("#selected_two option:checked").text();
					var hospital = 'hz';
					console.log(sign);


					$.post("http://y3.pengai.net/pc/2018hztm/pccjresult_v1.php", {
						"referrer": '<?php echo $_GET['referrer']?$_GET['referrer']:"竞价推广"; ?>',
						"department": '<?php echo $_GET['department']?$_GET['department']:"竞价推广"; ?>',
						"hospital": hospital,
						"val_recName": pitch,
						"isOldCust":sign,
						"val_name": name,
						"val_phone": tel
					}, function(e) {
						console.log(e);
						$("#name").val(name);
						if(e == "success") {
							alert("预约成功！请稍后查看您的短信预约码");
						} else if(e == "hasdone") {
							alert("您已经提交过了，凭预约码或手机号到前台即可参与活动！");
						} else {
							alert("数据有误，请重新填写！");
						}
					});
					
				}

			});
		});
	</script>
</html>